package cn.stylefeng.guns.modular.loginStatus.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 扫码登录状态
 * </p>
 *
 * @author Dong
 * @since 2023-08-10
 */
@TableName("p_loginStatus")
public class LoginStatus implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * ID
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    @TableField("createTime")
    private Date createTime;

    /**
     * 0未扫码 1已扫码 2已登录
     */
    @TableField("state")
    private Integer state;
    @TableField("tokenStr")
    private String tokenStr;


    public String getTokenStr() {
		return tokenStr;
	}

	public void setTokenStr(String tokenStr) {
		this.tokenStr = tokenStr;
	}

	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "LoginStatus{" +
        "id=" + id +
        ", createTime=" + createTime +
        ", state=" + state +
        ", tokenStr=" + tokenStr +
        "}";
    }
}
